package com.feri.rbacsys.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * (Gift)表实体类
 *
 * @author makejava
 * @since 2023-03-27 21:00:20
 */
@Data
@TableName("t_gift")
@NoArgsConstructor
@AllArgsConstructor
public class Gift {

    private Integer id;
    // 商品id
    private Integer pid;
    //赠品策略有效期
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date validity;
    //赠品时长
    private Integer duration;
    //创建人
    private String creator;
    //创建时间
    private Date createTime;
    //状态
    private String state;
    // 赠送数量
    private Integer num;

}

